package com.ruoyi.qiushi.domain.followup;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 问答单项对象 qiushi_form_item
 *
 * @author ruoyi
 * @date 2023-12-19
 */
public class QiushiFormItem extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    private Long id;

    /**
     * 表单id
     */
    @Excel(name = "表单id")
    private Long formId;

    /**
     * 表单项类型
     */
    @Excel(name = "表单项类型 ")
    private String type;

    /**
     * 表单项标题
     */
    @Excel(name = "表单项标题")
    private String label;

    /**
     * 是否必填 0否  1是
     */
    @Excel(name = "是否必填 0否  1是")
    private String required;

    /**
     * 输入型提示文字
     */
    @Excel(name = "输入型提示文字")
    private String placeholder;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Long sort;

    /**
     * 选项
     */
    @Excel(name = "选项")
    private String scheme;

    /**
     * 0正常 1删除
     */
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setFormId(Long formId) {
        this.formId = formId;
    }

    public Long getFormId() {
        return formId;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getLabel() {
        return label;
    }

    public void setRequired(String required) {
        this.required = required;
    }

    public String getRequired() {
        return required;
    }

    public void setPlaceholder(String placeholder) {
        this.placeholder = placeholder;
    }

    public String getPlaceholder() {
        return placeholder;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Long getSort() {
        return sort;
    }

    public void setScheme(String scheme) {
        this.scheme = scheme;
    }

    public String getScheme() {
        return scheme;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("formId", getFormId())
                .append("type", getType())
                .append("label", getLabel())
                .append("required", getRequired())
                .append("placeholder", getPlaceholder())
                .append("sort", getSort())
                .append("scheme", getScheme())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
